package com.wx.mall.operate.dto;

import com.wx.mall.common.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ActivityDto {

    @ApiModelProperty("当前页")
    @NotNull(message = "不能为空")
    private Integer pageNum;

    @ApiModelProperty("页数")
    @NotNull(message = "不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "活动标题")
    private String title;

    @ApiModelProperty(value = "状态：0未开始,1进行中,2已结束")
    private String status;

    @ApiModelProperty("排序方式:0为活动标题,1为开始时间")
    @FlagValidator(value = {"0","1"},message = "状态不正确")
    private int sort;
}
